﻿using BCDto.OA.Attendance.AttendanceClassSetting;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace BCDto.OA.Attendance.AttendanceClass
{
    /// <summary>
    /// 班次请求信息
    /// </summary>
    public class AttendanceClassRequestDto
    {
        /// <summary>
        /// 班次名称
        /// </summary>
        [Display(Name = "班次名称")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string ClassName { get; set; }

        /// <summary>
        /// 休息时间
        /// </summary>
        [Display(Name = "休息时间")]
        public string RestTime { get; set; }

        /// <summary>
        /// 合计工作时长
        /// </summary>
        [Display(Name = "合计工作时长")]
        public string TotalWorkHours { get; set; }
        /// <summary>
        /// 合计出勤天数
        /// </summary>
        [Display(Name = "合计出勤天数")]
        public decimal? TotalDays { get; set; }

        /// <summary>
        /// 时间信息设置
        /// </summary>
        [Display(Name = " 时间信息")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public List<AttendanceClassSettingRequestDto> Settings { get; set; } = new List<AttendanceClassSettingRequestDto>();
    }
}
